package element;

import java.awt.*;

/**
 * @author 邓哈哈
 * 2023/2/25 20:26
 * Function:
 * Version 1.0
 */

public class Shit extends MyObject {
    /**
     * 初始化
     */
    public Shit() {
        //初始化图片
        this.img = Toolkit.getDefaultToolkit().getImage("src/main/imgs/大便.png");
        //初始化坐标
        this.x = (int) (Math.random() * 700);
        this.y = (int) (Math.random() * (850 - 500) + 300);
        //初始化尺寸
        this.width = 70;
        this.height = 70;
        //初始化存活状态(默认为未存活)
        this.alive = false;
        //初始化质量
        this.quality = 15;
        //初始化积分
        this.count = -10;
        //初始化类型
        this.type = 2;
    }
}
